package com.xy.repository;

import com.xy.entity.uc.Address;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface AddressRepository extends JpaRepository< Address, String> {

   // List<Address>  findAllByUserId(String userId);

    Address findByUuidAndAndUserId(String uuid,String userId);

    void deleteByUuid(String uuid);

    List<Address> findAllByUserId(String userId);

    List<Address> findByDefaultAddress(String defaultAddress);



}
